home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / ttyname.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  995 b   |  67 lines

  1.  
  2.  
  3.  
  4. TTYNAME(3)          MINTLIB LIBRARY FUNCTIONS          TTYNAME(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        ttyname - find name of a terminal
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        char *ttyname(int fildes);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        ttyname returns a pointer to a string containing the null-
  17.        terminated path name of  the  terminal  device  associated
  18.        with file descriptor fildes. A NULL pointer is returned if
  19.        fildes does not describe a terminal device.
  20.  
  21. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  22.        i✓is✓sa✓at✓tt✓ty✓y(✓(3✓3)✓)
  23.  
  24. N✓NO✓OT✓TE✓ES✓S
  25.        If MiNT is not active or a version of MiNT before  0.9  is
  26.        used, either /dev/aux or /dev/con is returned.
  27.  
  28.        If MiNT 0.9 or later is used and no terminal name could be
  29.        found, /dev/tty is returned.
  30.  
  31.        The return value points to static data whose  contents  is
  32.        overwritten by each call.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.